# Contributor: Galen Abell <galen@galenabell.com>
# Maintainer: Galen Abell <galen@galenabell.com>
pkgname=py3-dotty-dict
pkgver=1.3.0
pkgrel=2
pkgdesc="Dictionary wrapper for quick access to deeply nested keys"
url="https://github.com/pawelzny/dotty_dict"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
source="$pkgname-$pkgver.tar.gz::https://github.com/pawelzny/dotty_dict/archive/v$pkgver.tar.gz"
builddir="$srcdir/dotty_dict-$pkgver"

export SETUPTOOLS_SCM_PRETEND_VERSION="$pkgver"

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH="." pytest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="97c99813335c0312528e4779dc60c882cdb5daa257e88241a9d7d6708c5056f553251a47238fd17baa62169a9f6d5cd659c9f610b9ea0f9bb35fdad48a4ddd89  py3-dotty-dict-1.3.0.tar.gz"
